home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 14350 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.6 KB

  1. Path: jblhome.ping.dk!usenet
  2. From: jacob@jblhome.ping.dk (Jacob Lorensen)
  3. Newsgroups: comp.unix.programmer,comp.lang.c
  4. Subject: Re: Applying file masks in UNIX using C/C++
  5. Date: 13 Apr 1996 20:50:34 +0200
  6. Organization: Jacobs home computer.
  7. Sender: jacob@pippin.jblhome.ping.dk
  8. Message-ID: <m1pw9cot51.fsf@pippin.jblhome.ping.dk>
  9. References: <31618AFE.5476@netrover.com>
  10.     <m1g2akuyph.fsf@pippin.jblhome.ping.dk>
  11.     <4k7icoINNp4c@keats.ugrad.cs.ubc.ca>
  12. NNTP-Posting-Host: pippin.jblhome.ping.dk
  13. Mime-Version: 1.0
  14. Content-Type: text/plain; charset=iso-8859-1
  15. Content-Transfer-Encoding: 8bit
  16. In-reply-to: c2a192@ugrad.cs.ubc.ca's message of 6 Apr 1996 21:04:24 -0800
  17. X-Newsreader: Gnus v5.1
  18.  
  19. >>>>> "Kazimir" == Kazimir Kylheku <c2a192@ugrad.cs.ubc.ca> writes:
  20.  
  21.     Kazimir> In article <m1g2akuyph.fsf@pippin.jblhome.ping.dk>, Jacob
  22.     Kazimir> Lorensen <jacob@jblhome.ping.dk> wrote:
  23.  
  24.     >>>>>>> "Stephane" == Stephane Charette <charrick@netrover.com>
  25.     >>>>>>> writes:
  26.  
  27.     Stephane> This is a long shot...but...does anyone know of the
  28.     Stephane> existence of public domain C/C++ code which will apply a
  29.     Stephane> file mask to an existing filename and return a TRUE or
  30.     Stephane> FALSE response?
  31.  
  32.     >> WILDMAT(3) WILDMAT(3)
  33.  
  34.     >> NAME wildmat - perform shell-style wildcard matching
  35.  
  36.     >> SYNOPSIS int wildmat(text, pattern) char *text; char *pattern;
  37.  
  38.     Kazimir> I've never even heard of wildmat! I have checked three
  39.     Kazimir> different major UNIX OS's and none of them have it in 
  40.     Kazimir> their man page roster.
  41.  
  42. No, I would not have thought so. That's also the reason I put a bit of
  43. extra information in my article, namely (also from the manual page):
  44.  
  45.    HISTORY
  46.       Written  by  Rich  $alz  <rsalz@uunet.uu.net> in 1986, and
  47.       posted to Usenet several times since then, most notably in
  48.       comp.sources.misc in March, 1991.
  49.  
  50. I.e., it appears to be a freely available library written by Rick Salz
  51. and posted to Usenet. As the description of the routine's
  52. functionality matches that requested by the original poster (Stephane
  53. Charette), namely to match a set of file names against a shell-style
  54. globbing pattern, I still think it may be a good idea to try and find
  55. it. Glob() searches the directory itself and thus can _only_ be used
  56. to find file names; wildmat() can be used to match arbitrary strings,
  57. including filenames, against a pattern.
  58.  
  59. BTW, wildmat() is included in the INN distribution.
  60.  
  61. Jacob.
  62.  
  63. -- 
  64. Jacob Lorensen; Mosebuen 33, 1.; DK-2820 Gentofte, Denmark; +45-31560401
  65. PGP Key fingerprint =  1E 87 26 46 74 36 DC 4A  72 3B 66 78 C5 AD 9E 71
  66. Public key available at the keyservers.
  67.